// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

Vue.config.productionTip = false

//引入elementUi
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';


//引入axios
import axios from "axios";
//配置axios的公共路径
axios.defaults.baseURL = "https://www.fastmock.site/mock/83c2720b372e2d53f082c4efceb8a7d4/pethome"
//全局属性配置，在任意组件内可以使用this.$http获取axios对象 拥有axios所有功能
Vue.prototype.$http = axios

//引入user.js
//使用fastmock需要注释掉mack
//import MockUser from './js/user/user.js'

Vue.use(ElementUI);

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
